(function($, window) {
	var v3RestdevVersion = window.v3RestdevVersion = {};
	var baseRequest = window.baseRequest;
	var appConfig = window.appConfig;
	var commonTool = window.commonTool;
	var dataManager = window.dataManager;
	var baseUrl = appConfig.v3ServiceUrl + '/ace/oasis/oasis-rest-dev-version/restdev';
	
	//Add by dongyi
    /**
     * 获取设备版本信息
     * @type {string}
     */
    var modelVersionUrl = baseUrl + '/o2oportal/getModelVersion?model=';
    v3RestdevVersion.getModelVersion = function (model, callback) {
        baseRequest.commonGet(modelVersionUrl + model, function (code, data) {
            if (code === 2 || code === 1) {
                return callback(2);
            }
            if (Number(data.error_code) === 1) {
                return callback(1, data.error_message);
            }
            callback(0, data.data_list);
        });
    }
	// end
})(mui, window);